WPDesk\FS\TableRate\FreeShipping\FreeShippingNoticeGenerator S

Total Complexity 39
Dependencies 8
Dependents 1
Total lines 278
Lines of code 122
Logical lines of code 52
Comment lines 108
Methods 16
Properties 3

Methods 16

Method Rating Maintainability Complexity Lines of code
get_shipping_method_with_lowest_free_shipping_limit()
S
56 6 18
has_shipping_rate_with_free_shipping()
S
61 5 13
add_free_shipping_notice_if_should()
S
65 5 8
has_free_shipping_rate()
S
66 4 8
has_shipping_method_free_shipping_notice_enabled()
S
69 4 6
get_notice_text_message()
S
66 3 8
add_free_shipping_amount_to_session()
S
55 1 18
is_excluded_shipping_method()
S
71 2 5
get_cart_value()
S
78 2 3
prepare_free_shipping_notice_data()
S
61 1 14
__construct()
S
74 1 5
hooks()
S
78 1 3
get_shipping_packages_count()
S
80 1 3
get_notice_text_button_url()
S
79 1 3
get_notice_text_button_label()
S
78 1 3
is_package_rate_from_flexible_shipping()
S
74 1 4